package com.miyu.system.pojo.system;

import com.miyu.system.utils.jpacomment.annotation.ColumnComment;
import com.miyu.system.utils.jpacomment.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jakarta.persistence.*;
import lombok.Data;


import java.io.Serializable;

/**
 * 天气城市字典;
 * @author : miyu
 * @date : 2023-7-23
 */
@ApiModel(value = "天气城市字典",description = "")
@Data
@Entity
@Table(name="sys_city")
@TableComment("城市字典表")
public class SysCity implements Serializable,Cloneable{
    /** 城市编码 */
    @Id
    @TableGenerator(name="id_gen",  table="sys_id_generator", pkColumnName="table_name", pkColumnValue="sys_city", valueColumnName="id_value", initialValue=1, allocationSize=1)
    @GeneratedValue(strategy=GenerationType.TABLE, generator="id_gen")
    @ColumnComment("城市编码")
    @ApiModelProperty(value="城市编码",notes = "")
    @Column(name = "id", nullable = false,length=11 )
    private Integer id ;
    /** 城市拼音 */
    @ColumnComment("城市拼音")
    @ApiModelProperty(value="城市拼音",notes = "")
    @Column(name = "city_en", nullable = true,length=50 )
    private String cityEn ;
    /** 城市中文名 */
    @ApiModelProperty(value="城市中文名",notes = "")
    @ColumnComment("城市中文名")
    @Column(name = "city_zh", nullable = true,length=32 )
    private String cityZh ;
    /** 国家英文 */
    @ApiModelProperty(value="国家英文",notes = "")
    @ColumnComment("国家英文")
    @Column(name = "country_en", nullable = true,length=50 )
    private String countryEn ;
    /** 国家中文 */
    @ApiModelProperty(value="国家中文",notes = "")
    @ColumnComment("国家中文")
    @Column(name = "country_zh", nullable = true,length=50 )
    private String countryZh ;
    /** 经度 */
    @ApiModelProperty(value="经度",notes = "")
    @ColumnComment("经度")
    @Column(name = "lat", nullable = true,length=20 )
    private String lat ;
    /** 上级英文 */
    @ApiModelProperty(value="上级英文",notes = "")
    @ColumnComment("上级英文")
    @Column(name = "leader_en", nullable = true,length=32 )
    private String leaderEn ;
    /** 上级中文 */
    @ApiModelProperty(value="上级中文",notes = "")
    @ColumnComment("上级中文")
    @Column(name = "leader_zh", nullable = true,length=50 )
    private String leaderZh ;
    /** 纬度 */
    @ApiModelProperty(value="纬度",notes = "")
    @ColumnComment("纬度")
    @Column(name = "lon", nullable = true,length=20 )
    private String lon ;
    /** 省级名称英文 */
    @ApiModelProperty(value="省级名称英文",notes = "")
    @ColumnComment("省级名称英文")
    @Column(name = "province_en", nullable = true,length=32 )
    private String provinceEn ;
    /** 省级名称中文 */
    @ApiModelProperty(value="省级名称中文",notes = "")
    @ColumnComment("省级名称中文")
    @Column(name = "province_zh", nullable = true,length=50 )
    private String provinceZh ;
}